package cn.openea.perpartner.meily.constant.enums;

import org.apache.commons.lang3.StringUtils;

/**
 * @author ysk
 * @version 1.0.1
 * @Description meily平台身份
 * @createTime 2023年05月04日 17:02:00
 */
public enum PlatformIdentityEnums {
    EVALUATOR("测评师"),
    REGIONAL_SERVICE_PROVIDERS("区域服务商");

    private String remark;

    PlatformIdentityEnums(String remark) {
        this.remark = remark;
    }

    public static PlatformIdentityEnums getInstance(String name) {
        if (StringUtils.isBlank(name)) {
            return null;
        }
        for (PlatformIdentityEnums value : values()) {
            if (value.name().equals(name)) {
                return value;
            }
        }
        return null;
    }
}
